package com.cloudOffice.execption;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @program: cloud-office
 * @className: SystemException
 * @description: 自定义异常
 * @data: 2024/2/5 20:22
 * @author: ihu
 * @version: 1.0
 **/

@EqualsAndHashCode(callSuper = true)
@Data
public class SystemException extends RuntimeException {
	
	private Integer code;
	private String message;
	
	public SystemException() {
	}
	
	public SystemException(Integer code, String message) {
		super(message);
		this.code = code;
		this.message = message;
	}
}
